package com.lanou3g.ptp.taskrole.service;

import com.lanou3g.ptp.entity.TaskRole;

import java.util.ArrayList;
import java.util.List;

public interface TaskRoleService {
    //查询所有
    List<TaskRole> findAll(Integer page,Integer size);


    //通过ID查询
    TaskRole findById(Long id);

    //新增
    void insert(ArrayList<TaskRole> taskRoles);

    //修改
    void update(Long id,TaskRole taskRole);

    //删除一个
    void delete(Long id);

    //批量删除
    void deletes(Long[] ids);

    void deleteByTaskId(Long taskId);
    //根据roleId查找
    TaskRole findByRoleId(Long roleId);
    // 根据taskId查找
    ArrayList<TaskRole> findByTaskId(Long taskId);

    void deletesByTaskIds(Long[] ids);


}
